import Vue from 'vue'
import App from './App.vue'
import './assets/style.css'
import router from './router'
import store from './store'
import axios from 'axios'
import qs from 'qs'

import Vant from 'vant';
import 'vant/lib/index.css';

import'amfe-flexible'
import './styles/index.css'

import './utils/dayjs'


//全局注册组件
import Devider from './components/Devider.vue'
Vue.component('devider', Devider);

import MyTabbar from './components/MyTabbar.vue'
Vue.component('my-tabbar', MyTabbar);

Vue.use(Vant);

Vue.prototype.$axios = axios
Vue.prototype.$qs = qs

Vue.config.productionTip = false


Vue.directive('fofo', {
  inserted (el) {
    const theInput = el.querySelector('input')
    theInput.focus()
  }
})

new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
